<template>
	<router-view></router-view>
</template>
<script>

export default {
	name: 'APP',
	methods: {
		// clientHeightResize() {
		// 	this.$store.commit('UPDATEUTABLEHEIGHT', window.innerHeight - 275);
		// }
	},
	created() {
		// 100是表格外其它布局占的高度，这个数值根据自己实际情况修改
		this.$store.commit('SETTABLEHEIGHT', window.innerHeight - 180)
	},
	mounted() {
		// 设置表格高度
		this.$store.commit('SETTABLEHEIGHT', window.innerHeight - 180)
		// / 监听浏览器窗口变化，动态计算表格高度，
		// window.onresize = () => {
		// 	return (() => {
		// 		this.$store.commit('SETTABLEHEIGHT', window.innerHeight - 180)
		// 	})()
		// }
		window.addEventListener('resize', () => {
			this.$store.commit('SETTABLEHEIGHT', window.innerHeight - 180)
		})
	}
};
</script>
<style>
* {
	padding: 0;
	margin: 0;
}

html,
body {
	height: 100%;
}
</style>
